/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/////////////////////////////////////////////////////////////////////////

package sheep.view;

/////////////////////////////////////////////////////////////////////////

import java.awt.BorderLayout;


import javax.swing.Box;

import org.jdesktop.swingx.JXPanel;

/////////////////////////////////////////////////////////////////////////
import sheep.controller.Workspace;

/**
 *
 * @author geek
 */
public class AgendaViewer extends JXPanel {

 
  private Workspace workSpace;
  private AgendaPanel agendaPanel;
    /////////////////////////////////////////////////////////////////////////
    
    AgendaViewer(Workspace workSpace) {
      this.workSpace = workSpace;
      setOpaque(false);
      setLayout(new BorderLayout());

      agendaPanel = new AgendaPanel(workSpace);
      agendaPanel.setOpaque(false);
          
      //add(BorderLayout.CENTER, new RoundedPanel(agendaPanel));
      add(BorderLayout.CENTER,agendaPanel);
        
      add(BorderLayout.WEST, Box.createHorizontalStrut(20));
      add(BorderLayout.NORTH, Box.createVerticalStrut(20));
      add(BorderLayout.EAST, Box.createHorizontalStrut(20));
      add(BorderLayout.SOUTH, Box.createVerticalStrut(20));
    }

  public AgendaPanel getAgendaPanel() {
    return agendaPanel;
  }

  public void setAgendaPanel(AgendaPanel agendaPanel) {
    this.agendaPanel = agendaPanel;
  }
    
    
 /////////////////////////////////////////////////////////////////////////   
    
}

/////////////////////////////////////////////////////////////////////////
